# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy
from scrapy import Field
from scrapy.loader import ItemLoader
from scrapy.loader.processors import MapCompose, TakeFirst, Join

class ShetuItem(scrapy.Item):
    url = Field()
    alt = Field()
    name = Field()
    size = Field()
    pixel = Field()


class DaomuItem(scrapy.Item):
    bookname = Field()
    booktitle = Field()
    chaptername = Field()
    chapternum = Field()
    chapterurl = Field()
    text = Field()


# class DaomuLoader(ItemLoader):
#     default_item_class = DaomuItem
#     default_input_processor = MapCompose(lambda s: s.strip())
#     default_output_processor = TakeFirst()
#     description_out = Join()

class GetpicItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass
